@import "~@/assets/scss/mixin.scss";

.container {
  margin-top: 20px;
  background: #fff;
  border-radius: 8px;

  @include clear;
}

.head {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 80px;
  border-bottom: 1px solid #e7e7e7;
  box-sizing: border-box;
}

.headTime {
  color: #333;
  font-size: 28px;
  font-weight: 500;
}

.headLeague {
  flex: 1;
  width: 0;
  margin-left: 30px;
  color: #999;
  font-size: 24px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;

  @include ellipsis;
}

.headStatus {
  display: flex;
  margin-left: 16px;
  color: #f70900;
  font-size: 24px;
  font-weight: 500;

  &.isDisable {
    color: #999;
  }

  &.statusAni {
    margin-left: 4px;
    color: #ff5338;
  }
}

// .statusAni {
//   margin-left: 4px;
//   color: #ff5338;
//   font-size: 14px;
//   animation: ani-status-keyframe 1s infinite;
// }

@keyframes ani-status-keyframe {
  0% {
    opacity: 0;
  }

  70% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.content {
  display: flex;
  align-items: center;
  position: relative;
  margin: 16px 0;
}

.inner {
  flex: 1;
  width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;

  &.isReverse {
    flex-flow: column-reverse;
  }
}

.teamWrapper {
  padding-top: 10px;
  margin-left: 20px;
  display: flex;
  align-items: center;
  height: 50px;
  border-right: 2px solid #e7e7e7;
}

.teamImage {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.teamName {
  margin-left: 10px;
  flex: 1;
  width: 0;
  color: #333;
  font-size: 28px;
  font-weight: 500;

  @include ellipsis;
}

.roundsWrapper {
  flex-shrink: 0;
  margin-left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.roundItem {
  flex-shrink: 0;
  width: 42px;
  color: #999;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
}

.brandWrapper {
  flex-shrink: 0;
  margin-left: 20px;
  display: flex;
  width: 150px;
}

.boardItem {
  margin-right: 4px;
  width: 20px;
  height: 24px;
  line-height: 24px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  border-radius: 4px;

  &.isRed {
    background: #f90101;
  }

  &.isYellow {
    background: #ffb830;
  }
}

.teamScore {
  position: relative;
  padding-right: 20px;
  width: 64px;
  color: #f70900;
  font-size: 28px;
  font-weight: bold;
  text-align: right;

  &.isShowPoint {
    &::after {
      content: '';
      position: absolute;
      top: 50%;
      right: 0;
      width: 0;
      height: 0;
      border-top: 9px solid transparent;
      border-right: 11px solid #333;
      border-bottom: 9px solid transparent;
      transform: translateY(-50%);
    }
  }
}

.liveList {
  flex-shrink: 0;
  padding: 0 20px;
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;

  &.notLive {
    justify-content: center;
    color: #999;
    font-size: 24px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
  }
}

.liveItem {
  flex-shrink: 0;
  margin-left: -16px;
  position: relative;
  width: 50px;
  height: 50px;
  cursor: pointer;

  &:first-child {
    margin-left: 0;
  }
}

.liveImage {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.anchorStatus {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24px;
  height: 24px;
  background: #f70900;
  border-radius: 50%;
  box-sizing: border-box;
}
